Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

Discount Module code error

#22

When trying to apply a valid discount code the always returns that the user has entered an invalid discount code.

This is due to a query error in modules/discount/discount.inc.php on line 99

    $rs = $db->Execute(sqlSelect($db,"discount","*","( date_start IS NULL OR date_start=0 OR date_start<".time().") AND date_expire<=".time()." AND name=::$discount_code::"));

This query should read..

    $rs = $db->Execute(sqlSelect($db,"discount","*","( date_start IS NULL OR date_start=0 OR date_start<".time().") AND date_expire>=".time()." AND name=::$discount_code::"));

Reported by Dave Howarth · July 12th, 2009 @ 10:11 AM

State: new
Milestone: none
Assigned to: Scott Scott

Activity

  1. Scott
    Scott
    • Assigned user set to Scott

    David,

    Thanks for the fix, I'll patch it shortly...

    August 14th, 2009 @ 08:18 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.